<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body>
<table>
<tr><td id="title" colspan="2"><spring:message code="menu.home.label"/></td></tr>
<tr>
<td>
	<table>
		<th><spring:message code="home.notizie.title"/></th>
		<tr>
			     <c:forEach var="newsItem" items="${news}">
			       <td>
			            <ul>
			              <li id="${newsItem.id}"/>
			              <li>${newsItem.title}</li> 
			              <li>${newsItem.text}</li> 
		                  <li>${newsItem.link}</li> 
			            </ul>
			      </td>
			    </c:forEach>
		</tr>
	</table>
</td>

<td>	
	<table>
		<th><spring:message code="home.eventi.title"/></th>
		<tr>
			     <c:forEach var="eventsItem" items="${priorityEvents}">
			       <td>
			          <ul>
			             <li id="${eventsItem.id}"/>
			              <li>${eventsItem.title}</li>
			              <li>${eventsItem.title}</li>
	 		              <li>${eventsItem.description}</li> 
			          </ul>
			      </td>
			     </c:forEach>
		</tr>
	</table>
</td>
</tr>
 </table>
	
</body>
</html>